package com.sen.common.common.exception;

import com.sen.common.common.inter.RespCodeEnum;
import lombok.Data;

/**
 * 业务异常
 *
 * @author esjiang
 */
@Data
public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 6610083281801529147L;

    RespCodeEnum respCodeEnum;

    public BusinessException(RespCodeEnum respCodeEnum) {
        this.respCodeEnum = respCodeEnum;
    }

    public BusinessException(String message) {
        super(message);
    }
}
